#ifndef _SIMPLE_DIAL_H
#define _SIMPLE_DIAL_H

#include <gtkmm.h>
#include <gtkmm/drawingarea.h>
#include <gtkmm/range.h>




class SimpleDial : public Gtk::DrawingArea{



public:

	SimpleDial();
	virtual ~SimpleDial();

	virtual bool on_expose_event(GdkEventExpose* event);
	bool on_button_press_event(GdkEventButton* event);
		bool on_button_release_event(GdkEventButton* event);
		bool on_motion_notify_event(GdkEventMotion* event);
		


protected:

	
	
private:
	
	
	float color;
	bool buttonPressed;
	int incr_x, incr_y;
	
	float map_value(int value);
	int polToCar_x ();
	int polToCar_y ();
	int m_drag_y;
	float arc_angle;
	float r;



};








#endif
